package com.wwh.proxy2;

/**
 * @author Albert
 * @date 2024/8/26-21:42
 * @describe
 */
public class Calculator implements SmartAnimal{

    @Override
    public int getSum(int num1, int num2) {
        int res = num1 + num2;
        System.out.println("方法内部打印result = " + res);
        return res;
    }

    @Override
    public int getSub(int num1, int num2) {
        int res = num1 - num2;
        System.out.println("方法内部打印result = " + res);
        return res;
    }
}
